﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProveedorListForm.aspx.cs" Inherits="UILGestion.Admin.Proveedor.ProveedorListForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc1" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="lib" %>
<%@ Register src="ProveedorListGrid.ascx" tagname="ProveedorListGrid" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
      <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
 <link href="../../css/main.css" rel="stylesheet" type="text/css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server"  EnablePartialRendering="true">
    </asp:ToolkitScriptManager>
    <uc1:menuCtrl ID="menuCtrl1" runat="server" />


    <asp:Panel ID="Panel2" runat="server"
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  <asp:Label ID="Label2" runat="server" Text="LISTA PROVEEDORES" style="font-size: large; color: #960818"></asp:Label>
 </asp:Panel>

  <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">

  <table  width="100%" style="background-color:White">
          <tr>
              <td Width="800px">
              <asp:Panel ID="PanelwButtom" runat="server"   BackColor="white"  GroupingText="Filtros de busqueda">

              <table cellspacing="1" >
          <tr>
          <td align="right" class="style1" width="250px">
                 Razon Social/Nombre/RUC/DNI:</td>
                <td class="style1" colspan="5" width="650px"> 
                    <lib:Input ID="proveedortxt" runat="server" Width="400px" AutoPostBack="true"  ></lib:Input>
                </td>
             <td></td>
 </tr>
                  <tr>
                      <td align="right">
                          </td>
                      <td width="140px">
                          <asp:CheckBox ID="anuladoCheckBox" runat="server" Text="Ver Anulados" 
                              Visible="false" />
                      </td>
                      <td width="80px" align="right">
                          &nbsp;</td>
                      <td width="140px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="150px">
                        
      
                      </td>
                      <td>
                      </td>
                  </tr>
                  <tr class="ms-crm-Form-Body" >
                      <td align="right">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td width="120px">
                          &nbsp;</td>
                      <td align="right" width="80px">
                          &nbsp;</td>
                      <td align="right">
                          <asp:Button ID="refreshButton" runat="server" Width="80px"  Text="Buscar" CssClass="ms-crm-List-Header"  />
                      </td>
                      <td width="100px">
                          <asp:Button ID="Button1" runat="server" Width="80px" CssClass="ms-crm-List-Header"  onclick="nuevoButton_Click" 
                              Text="Nuevo" />
                      </td>
                  </tr>
 </table>
 </asp:Panel>
 </td>
      <td>
                  &nbsp;</td>
          </tr>
      </table>

   
  </asp:Panel>




 <asp:Panel ID="pnlMain" runat="server"
                    BackColor="White"
                 font-names="Arial" >

   
    

     <input id="idObra" name="idObra" type="hidden" runat="server" />

      <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>

      <uc2:ProveedorListGrid ID="ProveedorListGrid1" runat="server"  DataSourceID="ProveedorListODS"/>
     
     <asp:ObjectDataSource ID="ProveedorListODS"  runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="getProveedorList" 
             typeName="BOL.ProveedorBL" >
               <SelectParameters>
               <asp:ControlParameter Name="proveedorStr" Type="String" ControlID="proveedortxt"  />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
        </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="refreshButton" /> 
       
           </Triggers>
       
     </asp:UpdatePanel>
       </asp:Panel>
   
    </form>
</body>
</html>
